/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package aptech.semester.code.entity;

import java.io.File;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Vector;

/**
 *
 * @author vi
 */
public class EmployeeEntity {
    private String employeeId;
    private String name;
    private Date birthday;
    private boolean gender;
    private String email;
    private String address;
    private String phone;
    private File avatar;
    private Date entryDate;
    private BigDecimal basicSalary;
    private String provinceName;
    private int provinceId;
    private String bankName;
    private int bankId;
    private String accountNumberBank;
    private String departmentName;
    private int departmentId;
    private String positionName;
    private int positionId;
    private boolean maritalStatus;
    private boolean isActive;
    private String educationLevel;
    private int educationLevelId;
    private String specialize;
    private int specializeId;
    private int identifyNumber;
    private BigDecimal bonusSalary;

    public BigDecimal getBonusSalary() {
        return bonusSalary;
    }

    public void setBonusSalary(BigDecimal bonusSalary) {
        this.bonusSalary = bonusSalary;
    }

    public int getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(int provinceId) {
        this.provinceId = provinceId;
    }

    public int getBankId() {
        return bankId;
    }

    public void setBankId(int bankId) {
        this.bankId = bankId;
    }

    public int getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(int departmentId) {
        this.departmentId = departmentId;
    }

    public int getPositionId() {
        return positionId;
    }

    public void setPositionId(int positionId) {
        this.positionId = positionId;
    }

    public int getEducationLevelId() {
        return educationLevelId;
    }

    public void setEducationLevelId(int educationLevelId) {
        this.educationLevelId = educationLevelId;
    }

    public int getSpecializeId() {
        return specializeId;
    }

    public void setSpecializeId(int specializeId) {
        this.specializeId = specializeId;
    }

    public String getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public boolean isGender() {
        return gender;
    }

    public void setGender(boolean gender) {
        this.gender = gender;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public File getAvatar() {
        return avatar;
    }

    public void setAvatar(File avatar) {
        this.avatar = avatar;
    }

    public Date getEntryDate() {
        return entryDate;
    }

    public void setEntryDate(Date entryDate) {
        this.entryDate = entryDate;
    }

    public BigDecimal getBasicSalary() {
        return basicSalary;
    }

    public void setBasicSalary(BigDecimal basicSalary) {
        this.basicSalary = basicSalary;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }
    public String getAccountNumberBank() {
        return accountNumberBank;
    }

    public void setAccountNumberBank(String accountNumberBank) {
        this.accountNumberBank = accountNumberBank;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    public boolean isMaritalStatus() {
        return maritalStatus;
    }

    public void setMaritalStatus(boolean maritalStatus) {
        this.maritalStatus = maritalStatus;
    }

    public boolean isIsActive() {
        return isActive;
    }

    public void setIsActive(boolean isActive) {
        this.isActive = isActive;
    }

    public String getEducationLevel() {
        return educationLevel;
    }

    public void setEducationLevel(String educationLevel) {
        this.educationLevel = educationLevel;
    }
    public String getSpecialize() {
        return specialize;
    }

    public void setSpecialize(String specialize) {
        this.specialize = specialize;
    }

    public int getIdentifyNumber() {
        return identifyNumber;
    }

    public void setIdentifyNumber(int identifyNumber) {
        this.identifyNumber = identifyNumber;
    }
    
    public Vector toVector() {
        Vector v = new Vector();
        v.add(getEmployeeId());
        v.add(getName());
        if(isGender()==true) {
            v.add("Male");
        } else {
            v.add("Female");
        }
        if(isMaritalStatus()==false) {
            v.add("Single");
        } else {
            v.add("Married");
        }
        
        v.add(getPhone());
        v.add(getEntryDate());
        v.add(getBasicSalary());
        v.add(getProvinceName());
        v.add(getDepartmentName());
        v.add(getPositionName());
        v.add(getEducationLevel());
        v.add(getSpecialize());
        return v;
    }
    public Vector toVector1() {
        Vector v = new Vector();
        v.add(getEmployeeId());
        v.add(getName());
        v.add(getPositionName());
        v.add(getDepartmentName());
         return v;
    }
    
}
